package com.cscec.omega.controller;

import com.alibaba.fastjson.JSONObject;
import org.apache.http.HttpResponse;
import org.springframework.http.HttpStatus;
import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/aq")
public class LoginController {

    @PostMapping("/login")
    public JSONObject login(){
        System.out.println("登录.......");
        JSONObject jsonObject = new JSONObject();
        JSONObject data = new JSONObject();
        data.put("token", "123333");
        jsonObject.put("data", data);
        jsonObject.put("code", 20000);
        return jsonObject;
    }
}
